<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>5.3 CSS3动画综合实例制作-内容加载loading动画实现</title>
<style>
.spinner{
    margin: 100px auto;
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 10px;

}

.spinner>div{
    background-color: #67cf22;
    height: 100%;
    width: 6px;
    display: inline-block;
    animation: mymove 1.2s infinite ease-in-out;/*infinite 循环执行   ease in out 先快后慢 再快*/
    
}

.spinner>div:nth-child(2){
    animation-delay: -1.1s;
}
.spinner>div:nth-child(3){
    animation-delay: -1.0s;
}
.spinner>div:nth-child(4){
    animation-delay: -0.9s;
}
.spinner>div:nth-child(5){
    animation-delay: -0.8s;
}
    
    @keyframes mymove {
        0%,40%,100%{transform: scaleY(0.4)}
        20%{transform: scaleY(1)}

    }
</style>
</head>
<body>
     <div class="spinner">
           <div></div>
           <div></div>
           <div></div>
           <div></div>
           <div></div>
     </div>
</body>
</html>